package com.alan.product.issue.enums;

import java.util.Objects;

public interface MyEnum {

    Integer getCode();

    String getDesc();

    default boolean eq(Object other) {
        return other != null && (this == other
                || Objects.equals(this.getCode(), other)
                || Objects.equals(this.getDesc(), other));
    }

}
